/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.basic.third.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hopes.bizz.basic.common.constant.enums.ParkBasicSysDictEnum;
import com.hopes.boss.admin.api.resolver.DictResolver;
import com.hopes.boss.admin.api.resolver.enums.AdminDictEnum;
import com.hopes.boss.common.entity.BaseLogicEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 第三方单位管理
 *
 * @author pig
 * @date 2023-11-06 09:55:40
 */
@Data
@TableName("base_third_unit")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "第三方单位管理")
public class BaseThirdUnitEntity extends BaseLogicEntity {

    private static final long serialVersionUID = 1L;


	/**
	* 标识
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="标识")
    private Long id;

	/**
	* 机构ID
	*/
    @Schema(description="机构ID")
    private Long orgId;

	/**
	* 第三方单位名称
	*/
    @Schema(description="第三方单位名称")
    private String unitName;

	/**
	* 第三方单位类别
	*/
    @Schema(description="第三方单位类别")
    private String unitType;

	/**
	* 第三方单位状态
	*/
    @Schema(description="第三方单位状态")
    private String unitStatus;

	/**
	* 第三方单位统一社会信用代码
	*/
    @Schema(description="第三方单位统一社会信用代码")
    private String unitCreditCode;

	/**
	* 第三方单位联系人
	*/
    @Schema(description="第三方单位联系人")
    private String unitPrincipal;

	/**
	* 第三方单位联系人电话
	*/
    @Schema(description="第三方单位联系人电话")
    private String unitPrincipalMobile;

	/**
	* 第三方单位法人代表
	*/
    @Schema(description="第三方单位法人代表")
    private String unitLegalPerson;

	/**
	* 第三方单位注册地址
	*/
    @Schema(description="第三方单位注册地址")
    private String unitRegisterAddr;

	/**
	* 第三方单位业务范围
	*/
    @Schema(description="第三方单位业务范围")
    private String unitBusinessScope;

	/**
	* 备注说明
	*/
    @Schema(description="备注说明")
    private String remark;

	/**
	* 附件
	*/
    @Schema(description="附件")
    private String attachment;

	public String getOrgIdStr(){
		return DictResolver.getItemLabelByValue(AdminDictEnum.sys_company,this.orgId);

	}

	public String getUnitTypeStr(){
		return DictResolver.getItemLabelByValue(ParkBasicSysDictEnum.third_unit_type,this.unitType);

	}
	public String getUnitStatusStr(){
		return DictResolver.getItemLabelByValue(ParkBasicSysDictEnum.third_unit_status,this.unitStatus);

	}

}
